﻿using Prism.Ioc;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Wpf.Netdisk.Models.Vo.ChildrenListItem.NetdiskFileInfo;
using Wpf.Netdisk.ViewModels.Base;

namespace Wpf.Netdisk.ViewModels.ChildrenListItem.TransfersView
{
    /// <summary>
    /// 正在下载
    /// </summary>
    public class TrayArrowDownViewModel : NavigationViewModel
    {
        #region 属性

        private int sumCount;

        public int SumCount
        {
            get { return sumCount; }
            set { sumCount = value; RaisePropertyChanged(); }
        }

        private ObservableCollection<NetdiskFileInfoVo> files;

        public ObservableCollection<NetdiskFileInfoVo> Files
        {
            get { return files; }
            set { files = value;RaisePropertyChanged(); }
        }

        #endregion
        public TrayArrowDownViewModel(IContainerProvider containerProvider) : base(containerProvider)
        {
            SumCount = 70;
            Files= new ObservableCollection<NetdiskFileInfoVo>();
            Files.Add(new NetdiskFileInfoVo()
            {
                 FileName="测试数据.png",
                 FileType="Img",
                 Size = 600,
                 Unit="MB",
                 DownloadSize =16,
                 FolderId ="11",
                 FileUrl= "https://img.ddtouxiang.com/upload/touxiang/20230410/04101001312256.jpeg"
            });
        }
    }
}
